Differential equations can be used to model the motion of springs and spring systems.
See W3L3 - Introduction to Free Undamped Motion (Spring System) and Chapter 5.1 - Higher-Order Linear Models Spring-Mass Systems for examples and more information.